package kr.hkit.powerjava.chapter06.homework;

import java.util.Scanner;

public class programming03 {
	public static void main(String[] args) {
		
		double tall;
		double weight;
		double normWeight; 
		
		Scanner input = new Scanner (System.in);
		System.out.print("키를 입력하시오: ");
		tall = input.nextDouble();
		normWeight = (tall - 100) * 0.9;
		System.out.print("체중을 입력하시오: ");
		weight = input.nextDouble();
		
		if (weight>normWeight) {
			System.out.println("과체중 입니다.");
		} else if (weight<normWeight) {
			System.out.println("저체중 입니다.");
		} else
			System.out.println("표준체중 입니다");
	}
}
